package niltest

import (
	"fmt"
)

type persion struct {
	name string
	gae  int
}

func (s *persion) speak() {
	fmt.Println("I am a persion.name")
}

type ipersion interface {
	speak()
}

func Test() {
	var s5 *persion = nil
	var s5i ipersion = s5
	fmt.Println(&s5)
	fmt.Println(&s5i)
	fmt.Println("s5 == nil", s5 == nil)
	fmt.Println("s5i == nil", s5i == nil)
	s5.speak()
	s5i.speak()
}
